package com.xinyue.table.gen;

import com.xinyue.XinYueAdminApplication;
import com.xinyue.generator.service.IGenTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;

/**
 * @author 王广帅
 * @since 2024/2/27 18:33
 **/
@SpringBootTest(classes = {XinYueAdminApplication.class})
public abstract class BaseGenServerCode extends AbstractTestNGSpringContextTests {

    @Autowired
    private IGenTableService genTableService;

    protected void genCode(String tableName) {
        genTableService.generatorCode(tableName);
    }

    @Test
    protected abstract void startGen();

}
